import com.alibaba.fastjson.JSONObject;

/**
 * Created by Administrator on 2017/4/26.
 */
public class UserPartyMapper {
    private String join_date;
    private int join_id;
    private String user_id;
    private String party_id;
    public UserPartyMapper(){

    }
    public UserPartyMapper(String party_id, JSONObject jsonObject) {
        this.party_id = party_id;
        if(jsonObject.containsKey("join_data")){
            this.join_date=jsonObject.getString("join_date");
        }
        if(jsonObject.containsKey("join_id")){
            this.join_id=jsonObject.getIntValue("join_id");
        }
        if(jsonObject.containsKey("user_id")){
            this.user_id=jsonObject.getString("user_id");
        }
    }

    public String getJoin_date() {
        return join_date;
    }

    public void setJoin_date(String join_date) {
        this.join_date = join_date;
    }

    public int getJoin_id() {
        return join_id;
    }

    public void setJoin_id(int join_id) {
        this.join_id = join_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getParty_id() {
        return party_id;
    }

    public void setParty_id(String party_id) {
        this.party_id = party_id;
    }
}
